package terrain;

import Units.Creatures;
import Units.Models;

import com.jme3.scene.Node;

public class TileGlobal {
	private Node tileGlobalNode;
	private Node tileTerrainNode;
	private Node modelsNode;
	
	private Models models;
	private TileTerrain tile;
	
	public TileGlobal(Node tileGlobalNode, int type, int x, int y, TopDown topDown, Wall wall, Creatures creatures) {
		this.tileGlobalNode = tileGlobalNode;
		
		tileTerrainNode = new Node("Terrain Node");
		tile = new TileTerrain(tileTerrainNode, type, x, y, topDown, wall);
		tileGlobalNode.attachChild(tileTerrainNode);
		
		modelsNode = new Node("Creatures Node");
		models = new Models(modelsNode, x, y, creatures);
		tileGlobalNode.attachChild(modelsNode);
	}
	
	public Node getTileTerrainNode() {
		return tileTerrainNode;
	}
	
	public Node getTileGlobalNode() {
		return tileGlobalNode;
	}
	
	public TileTerrain getTile() {
		return tile;
	}
}
